const swipeTracker = new SwipeTracker.SwipeTracker(global.stage,
Clutter.Orientation.VERTICAL,
Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,
- {allowDrag: false, allowScroll: false});
+ {
+ allowDrag: false,
+ allowScroll: false,
+ phase: Clutter.EventPhase.CAPTURE,
+ });
swipeTracker.orientation = Clutter.Orientation.VERTICAL;
swipeTracker.connect('begin', this._gestureBegin.bind(this));
swipeTracker.connect('update', this._gestureUpdate.bind(this));
},
}, class SwipeTracker extends GObject.Object {
_init(actor, orientation, allowedModes, params) {
+ params = Params.parse(params, {
+ allowDrag: true,
+ allowScroll: true,
+ phase: Clutter.EventPhase.BUBBLE,
+ });
+
super._init();
- params = Params.parse(params, {allowDrag: true, allowScroll: true});
this.orientation = orientation;
this._allowedModes = allowedModes;
? Clutter.PanAxis.X : Clutter.PanAxis.Y,
],
null);
- actor.add_action_full("SwipeTracker", Clutter.EventPhase.BUBBLE, this._panGesture);
+ actor.add_action_full('SwipeTracker', params.phase, this._panGesture);
this._touchpadGesture = new TouchpadSwipeGesture(allowedModes);
this._touchpadGesture.connect('begin', this._beginTouchpadGesture.bind(this));
const swipeTracker = new SwipeTracker.SwipeTracker(global.stage,
Clutter.Orientation.HORIZONTAL,
Shell.ActionMode.NORMAL,
- {allowDrag: false});
+ {
+ allowDrag: false,
+ phase: Clutter.EventPhase.CAPTURE,
+ });
swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));
swipeTracker.connect('end', this._switchWorkspaceEnd.bind(this));